package com.ccn.crm.mapper;

import com.ccn.crm.model.Effort;
import com.ccn.crm.model.WorkTime;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
@Repository
public interface EffortMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Effort record);

    Effort selectByPrimaryKey(Integer id);

    List<Effort> selectAll();

    int updateByPrimaryKey(Effort record);

    Double selectConsumed(String product);

    List<Effort> selectProduct(String product);

    Effort selectEndUpdateTime(String product);

    List<WorkTime> weekWorkDate(Date date);
    List<WorkTime> weekLastWorkDate();

    Double selectDayWorkConsume(String name);
    Double selectDayWorkConsumeLast(String name);

}